<%--
 *  File:    ClearSettingEdit
 *  @Author: banshang 
 *  Date:    2010/06/30
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.HospitalEdit");
  String strModuleName = "ERM";
  String privilegeCode = "E0531";
  String contextPath = request.getContextPath();
  HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>ClearSettingEdit</title>
<PageFlow:CheckPageFlow pageName="p_dcpedit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript">
function page_done()
{
  if(!checkForm(document.cform))
    return;
  document.cform.target = "_parent";
  document.cform.actionname.value = "save"
  isRunning = true;
  document.cform.submit();
}

function page_back(){
	self.location.href= "about:blank";
}

</script>
</head>
<%
	HashMap dcpinfo = (HashMap)pageContext.getAttribute("dcpinfo");
	if(dcpinfo == null) dcpinfo = new HashMap();
	Integer datacleanprocessid = (Integer)dcpinfo.get("datacleanprocessid");
	boolean readonlyFlag = false;
	String styleStr = "";
	if(datacleanprocessid != null){
		readonlyFlag = true;
		styleStr = "border:0px;";
	}
%>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<form name="cform" method="post" action="<%=contextPath %>/Dispatcher" target="_self">
<table width="100%" cellspacing="0" cellpadding="0" >
<input type="hidden" name="pagename" value="p_dcpedit" />
<input type="hidden" name="actionname" />
<custom:hidden name="dcpinfo" property="datacleanprocessid"></custom:hidden>
  <tr> 
    <td valign="top"> 
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
          <tr> 
            <td colspan="4" class="deepblue-left"><img src="<%=contextPath %>/images/<%= strLanguageCode %>/quote.gif"> 
              	<%= label.getLabelName("L_Baseinfo") + label.getLabelName("L_Colon") %></td>
          </tr>
          <tr> 
            <td class="need" width="20%"><%=label.getLabelName("L_ProcessCode") + label.getLabelName("L_Colon") %></td>
            <td width="80%"><custom:text property="dcpcode" name="dcpinfo" command="notnull" label="L_ProcessCode" readonly="<%=readonlyFlag %>" style="<%=styleStr %>"/></td>
          </tr>
          <tr>
            <td class="need" width="20%"><%= label.getLabelName("L_FileType") + label.getLabelName("L_Colon") %></td>
            <td>
				<custom:selectdic name="dcpinfo" dictType="DataCleanType" property="processtype" disabled="<%=readonlyFlag %>"/>
			</td>
		  </tr>
		  <tr>
            <td class="td-text" width="20%"><%= label.getLabelName("L_ProcessDesc") + label.getLabelName("L_Colon") %></td>
            <td>
				<custom:text name="dcpinfo" property="processdesc" size="30"/>
			</td>
		  </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
      <td height="49" class="td_center">
      	<a onclick="page_done()"><custom:button type="1" label="L_Finish" imgsrc="finish.gif" border="0" style="width:60"/></a>
      	<a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
      </td>
  </tr>

</table>
</form>
</body>
</html>